//
//  LMSlideTab.h
//  今日头条
//
//  Created by longmin on 16/6/14.
//  Copyright © 2016年 longmin. All rights reserved.
//

#define kScreenW [UIScreen mainScreen].bounds.size.width

#import <UIKit/UIKit.h>

@class LMSlideTab;

@protocol LMSlideTabDelegate <NSObject>

@optional
/** 选中了指定索引的滑块 */
-(void)slideTab:(LMSlideTab *)slideTab didSelectIndex:(NSInteger)index;

@end

@interface LMSlideTab : UIView

@property(strong, nonatomic) NSArray *titleArr;

/** 代理 */
@property(weak, nonatomic) id<LMSlideTabDelegate> delegate;
/** 滑块文字颜色 */
@property(strong, nonatomic) UIColor *titleColor;
/** 滑块文字选中颜色 */
@property(strong, nonatomic) UIColor *selectColor;
/** 滑块文字字体 */
@property(strong, nonatomic) UIFont *titleFont;

@property(assign, nonatomic) NSInteger selectIndex;



@end
